package com.stedu.mall.common.service;

import com.github.pagehelper.PageInfo;
import com.stedu.mall.common.bean.Order;
import com.stedu.mall.common.bean.OrderVo;
import com.stedu.mall.common.exception.SteduException;

public interface OrederService {
    boolean insert(OrderVo orderVo) throws SteduException;

    Order selectById(String id, Integer userId) throws SteduException;
    Order selectOneById(String id);
    void pay(OrderVo orderVo) throws SteduException;
    //根据用户id查询
    PageInfo<Order> selectByCondition(Order condition, Integer pageNum, Integer pageSize);
    PageInfo<Order> selectByCondition2(Order condition, Integer pageNum, Integer pageSize);

    int updatestatus(Order order) throws SteduException;
}
